package com.allqj;

import java.util.Date;

/**
 * @author sjw
 * @className Test
 * @date 2021/10/31 15:08
 * @description: TODO
 */
public class Test {
    public static void main(String[] args) {
        Date d1=new Date();
        Date d2=new Date();
        //d2.setDate(1);
        d2.setYear(d1.getYear());
        d2.setMonth(d1.getMonth()+1);
        System.out.println(d2);
        System.out.println(DateTimeUtil.dateMonthFormat(d1));
        System.out.println(DateTimeUtil.dateMonthFormat(d2));
    }
}
